package com.jmb.controller;

import com.jmb.po.Vaccines;
import com.jmb.service.VaccinesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class VaccinesController {
@Autowired
    private VaccinesService vaccinesService;
//返回成人接种的
@GetMapping(value = "/findAdultVaccines")
    public List<Vaccines> findAdultVaccines(){
    List<Vaccines> vaccines=vaccinesService.findAdultVaccines();
    return vaccines;
    }
}
